package com.data.modules.online.cgreport.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

@TableName("onl_cgreport_param")
public class OnlCgreportParam implements Serializable {
    private static final long serialVersionUID = 1;
    private String cgrheadId;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @TableId(type = IdType.ASSIGN_ID)

    private String id;
    private Integer orderNum;
    private String paramName;
    private String paramTxt;
    private String paramValue;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    public boolean canEqual(Object other) {
        return other instanceof OnlCgreportParam;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlCgreportParam)) {
            return false;
        }
        OnlCgreportParam onlCgreportParam = (OnlCgreportParam) o;
        if (!onlCgreportParam.canEqual(this)) {
            return false;
        }
        Integer orderNum2 = getOrderNum();
        Integer orderNum3 = onlCgreportParam.getOrderNum();
        if (orderNum2 != null ? !orderNum2.equals(orderNum3) : orderNum3 != null) {
            return false;
        }
        String id = getId();
        String id2 = onlCgreportParam.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String cgrheadId2 = getCgrheadId();
        String cgrheadId3 = onlCgreportParam.getCgrheadId();
        if (cgrheadId2 != null ? !cgrheadId2.equals(cgrheadId3) : cgrheadId3 != null) {
            return false;
        }
        String paramName2 = getParamName();
        String paramName3 = onlCgreportParam.getParamName();
        if (paramName2 != null ? !paramName2.equals(paramName3) : paramName3 != null) {
            return false;
        }
        String paramTxt2 = getParamTxt();
        String paramTxt3 = onlCgreportParam.getParamTxt();
        if (paramTxt2 != null ? !paramTxt2.equals(paramTxt3) : paramTxt3 != null) {
            return false;
        }
        String paramValue2 = getParamValue();
        String paramValue3 = onlCgreportParam.getParamValue();
        if (paramValue2 != null ? !paramValue2.equals(paramValue3) : paramValue3 != null) {
            return false;
        }
        String createBy2 = getCreateBy();
        String createBy3 = onlCgreportParam.getCreateBy();
        if (createBy2 != null ? !createBy2.equals(createBy3) : createBy3 != null) {
            return false;
        }
        Date createTime2 = getCreateTime();
        Date createTime3 = onlCgreportParam.getCreateTime();
        if (createTime2 != null ? !createTime2.equals(createTime3) : createTime3 != null) {
            return false;
        }
        String updateBy2 = getUpdateBy();
        String updateBy3 = onlCgreportParam.getUpdateBy();
        if (updateBy2 != null ? !updateBy2.equals(updateBy3) : updateBy3 != null) {
            return false;
        }
        Date updateTime2 = getUpdateTime();
        Date updateTime3 = onlCgreportParam.getUpdateTime();
        if (updateTime2 == null) {
            if (updateTime3 == null) {
                return true;
            }
        } else if (updateTime2.equals(updateTime3)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        Integer orderNum2 = getOrderNum();
        int hashCode = orderNum2 == null ? 43 : orderNum2.hashCode();
        String id = getId();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = id == null ? 43 : id.hashCode();
        String cgrheadId2 = getCgrheadId();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = cgrheadId2 == null ? 43 : cgrheadId2.hashCode();
        String paramName2 = getParamName();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = paramName2 == null ? 43 : paramName2.hashCode();
        String paramTxt2 = getParamTxt();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = paramTxt2 == null ? 43 : paramTxt2.hashCode();
        String paramValue2 = getParamValue();
        int i6 = (hashCode5 + i5) * 59;
        int hashCode6 = paramValue2 == null ? 43 : paramValue2.hashCode();
        String createBy2 = getCreateBy();
        int i7 = (hashCode6 + i6) * 59;
        int hashCode7 = createBy2 == null ? 43 : createBy2.hashCode();
        Date createTime2 = getCreateTime();
        int i8 = (hashCode7 + i7) * 59;
        int hashCode8 = createTime2 == null ? 43 : createTime2.hashCode();
        String updateBy2 = getUpdateBy();
        int i9 = (hashCode8 + i8) * 59;
        int hashCode9 = updateBy2 == null ? 43 : updateBy2.hashCode();
        Date updateTime2 = getUpdateTime();
        int i10 = (hashCode9 + i9) * 59;
        if (updateTime2 != null) {
            i = updateTime2.hashCode();
        }
        return i10 + i;
    }

    public void setCgrheadId(String cgrheadId2) {
        this.cgrheadId = cgrheadId2;
    }

    public void setCreateBy(String createBy2) {
        this.createBy = createBy2;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setCreateTime(Date createTime2) {
        this.createTime = createTime2;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setOrderNum(Integer orderNum2) {
        this.orderNum = orderNum2;
    }

    public void setParamName(String paramName2) {
        this.paramName = paramName2;
    }

    public void setParamTxt(String paramTxt2) {
        this.paramTxt = paramTxt2;
    }

    public void setParamValue(String paramValue2) {
        this.paramValue = paramValue2;
    }

    public void setUpdateBy(String updateBy2) {
        this.updateBy = updateBy2;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setUpdateTime(Date updateTime2) {
        this.updateTime = updateTime2;
    }

    public String toString() {
        return "OnlCgreportParam(id=" + getId() + ", cgrheadId=" + getCgrheadId() + ", paramName=" + getParamName() + ", paramTxt=" + getParamTxt() + ", paramValue=" + getParamValue() + ", orderNum=" + getOrderNum() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getCgrheadId() {
        return this.cgrheadId;
    }

    public String getParamName() {
        return this.paramName;
    }

    public String getParamTxt() {
        return this.paramTxt;
    }

    public String getParamValue() {
        return this.paramValue;
    }

    public Integer getOrderNum() {
        return this.orderNum;
    }

    public String getCreateBy() {
        return this.createBy;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public String getUpdateBy() {
        return this.updateBy;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }
}
